﻿using System.ComponentModel.DataAnnotations.Schema;

namespace NanjingbeiRailwayStation.Data.ClickHouse.Models
{
    /// <summary>
    /// 故障设备监控
    /// </summary>
    public class MonitoringOfAultyEquipment
    {
        /// <summary>
        /// 设备
        /// </summary>
        public string imei { get; set; } = string.Empty;
        /// <summary>
        /// 
        /// </summary>
        public DateTime eventTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 报警事件名称
        /// </summary>

        public string eventName { get; set; } = string.Empty;

        /// <summary>
        /// 设备名称
        /// </summary>
        /// 
       
        public string deviceName { get; set; } = string.Empty;

        /// <summary>
        /// 安装位置
        /// </summary>
     
        public string installationLocation { get; set; } = string.Empty;


        /// <summary>
        /// 事件 名称
        /// </summary>
        public string EventDescription { get
            {
                return Core.EventTypeTable.GetEventDescription(eventName);
            }
        }

        /// <summary>
        /// 事件 等级
        /// </summary>
        public string EventLevel
        {
            get
            {
                return Core.EventTypeTable.GetEventLevel(eventName);
            }
        }



    }
}
